﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WmsApp.WindowControl;

namespace WmsApp.Lookup
{
    public class AliveState
    {
        private static List<AliveState> _aliveStateList = null;
        public static List<AliveState> GetAliveStateList()
        {
            if(_aliveStateList == null)
            {
                var list = new List<AliveState>()
                            {
                                new AliveState{Code=Constant.IsValidTrue,Name="正常"},
                                new AliveState{Code=Constant.IsValidFalse,Name="作废"}
                            };
                _aliveStateList = list;
            }
            return _aliveStateList;
        }
        public String Code { get; set; }
        public String Name { get; set; }
    }

    public class BillState
    {
        private static List<BillState> _billStateList = null;
        public static List<BillState> GetBillStateList()
        {
            if (_billStateList == null)
            {
                var list = new List<BillState>()
                               {
                                   new BillState {Code = "0", Name = "草稿"},
                                   new BillState {Code = "1", Name = "确认"},
                                   new BillState {Code = "2", Name = "作废"}
                               };
                _billStateList = list;
            }
            return _billStateList;
        }
        public String Code { get; set; }
        public String Name { get; set; }
    }

    public class StoreGoodsState
    {
        private static List<StoreGoodsState> _storeGoodsStateList = null;
        public static List<StoreGoodsState> GetStoreGoodsStateList()
        {
            if (_storeGoodsStateList == null)
            {
                var list = new List<StoreGoodsState>()
                               {
                                   new StoreGoodsState {Code = null, Name = null},
                                   new StoreGoodsState {Code = ">", Name = "大于安全库存"},
                                   new StoreGoodsState {Code = "=", Name = "等于安全库存"},
                                   new StoreGoodsState {Code = "<", Name = "低于安全库存"}
                               };
                _storeGoodsStateList = list;
            }
            return _storeGoodsStateList;
        }
        public String Code { get; set; }
        public String Name { get; set; }
    }
}
